
<template>
  <div class="login-container" style=" background-image: url(/img/bg.jpg);">
    <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">

      <div class="title-container">
        <h3 class="title">{{ $t('login.title') }}</h3>
        <lang-select class="set-language" />
      </div>

      <el-form-item prop="username">
        <span class="svg-container">
          <svg-icon icon-class="user" />
        </span>
        <el-input
          v-model="loginForm.username"
          :placeholder="$t('login.username')"
          name="username"
          type="text"
          auto-complete="on"
        />
      </el-form-item>
      <el-form-item prop="password">
        <span class="svg-container">
          <svg-icon icon-class="password" />
        </span>
        <el-input
          v-model="loginForm.password"
          :type="pwdType"
          :placeholder="$t('login.password')"
          name="password"
          auto-complete="on"
          @keyup.enter.native="handleLogin"
        />
        <span class="show-pwd" @click="showPwd">
          <svg-icon icon-class="eye" />
        </span>
      </el-form-item>
      <el-button type="primary" id="TencentCaptcha"  data-appid="2018658745" data-cbfn="callback" style="width:100%;margin-bottom:30px;" >{{ $t('login.logIn') }}
      </el-button>
        <!--防水墙票据、字符串 begin-->
<!--        <input v-model="loginForm.ticket" type="hidden" value="ticket" name="ticket" id="ticket">-->
<!--        <input type="hidden" value="randstr" name="randstr" id="randstr">-->
        <!--防水墙票据、字符串 end-->
        <el-button :loading="loading" id="button" type="primary" @click.native.prevent="handleLogin" :style="{ display: 'none' }">{{ $t('login.logIn') }}</el-button>
<!--&lt;!&ndash;      <div style="margin-top: 10px;margin-left: 30px">&ndash;&gt;-->
<!--        <span style="display: block;font-size: 10px;margin-bottom: 5px">第三方账号登录：</span>-->
<!--        <a href="/oauth2/gitee"><img style="width: 15%;margin-left: 10px" src="https://gitee.com/static/images/logo-black.svg" alt="码云账号登录"></a>-->
<!--      </div>-->
    </el-form>
  </div>
</template>
<script src="./login.js"></script>
<style rel="stylesheet/scss" lang="scss" src="./login.scss"></style>
